﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

/// <summary>
/// Summary description for SortObjects_ViewDepartments
/// </summary>
public class SortObjects_ViewDepartments : IComparer<View_Departments>
{
    public int Compare(View_Departments com1, View_Departments com2)
    {
        return (com1.DepID < com2.DepID) ? 1 : ((com1.DepID > com2.DepID) ? -1 : 0);
    }
}